package com.example.goods_service.otherservice;

import com.example.goods_service.vo.Order;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Component
@FeignClient("ORDERFORMSERVICE")
public interface OrderService
{
    //订单所有条数
    @RequestMapping("/juhe")
    int juhe(@RequestParam("userid") int userid);
  //订单代发货条数
    @RequestMapping("/taiochasss")
   int taiochasss(@RequestParam("userid")int userid);
//订单待评价条数
    @RequestMapping("/taiochass")
    int taiochass(@RequestParam("userid") int userid);
//订单代付款条数
    @RequestMapping("/taiocha")
    int taiocha(@RequestParam(value = "userid",required = false)int userid);
//订单待收货条数
    @RequestMapping("/taiochas")
   int taiochas(@RequestParam("userid")int userid);


    //查询所有订单
    @RequestMapping("/selectorder")
     List<Order> selectorder(@RequestParam("q") int q,@RequestParam("j") int j,@RequestParam("userid") int userid);

    //发货
    @RequestMapping("/backfahuocb")
    int backfahuocb(@RequestParam("orderid") int orderid);
    //查询订单

    @RequestMapping("/selbyorder")
    List<Order> selbyorder(@RequestParam(value = "undertime",required = false)String undertime,
                                  @RequestParam(value = "ordernumber",required = false)String ordernumber);

}
